package top.kaoshanji.p1ch11b;

/**
 * 代码清单-p1ch11b-108页a：使用导演类的场景类
 * @author kaoshanji
 * ^_^
 * create time 2025/3/22 15:49
 */
public class ClientV1 {

    public static void main(String[] args) {

        Director director = new Director();

        // 10辆A类型的奔驰车
        for (int i = 0; i < 10; i++) {
            director.getABenzModel().run();
        }

        // 10辆B类型的奔驰车
        for (int i = 0; i < 10; i++) {
            director.getBBenzModel().run();
        }

        // 10辆C类型的宝马车
        for (int i = 0; i < 10; i++) {
            director.getCBMWModel().run();
        }


    }

}
